import { Module } from '@nestjs/common';
import { RedisModule } from 'nestjs-redis';
import { CommonRedisService } from './common-redis.service';

@Module({
    imports: [RedisModule.register({
        port: 6379,
        host: '127.0.0.1',
        password: '',
        db: 0

    }),],
    providers: [CommonRedisService],
    exports:[CommonRedisService]
})
export class CommonRedisModule { }
